package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName t_menu
 */
@TableName(value ="t_menu")
@Data
public class TMenu implements Serializable {
    /**
     * 菜单编号
     */
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    private String menuName;

    /**
     * 路径
     */
    @TableField(value = "url")
    private String url;

    /**
     * 父级编号
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 菜单顺序
     */
    @TableField(value = "order_no")
    private Integer orderNo;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 权限
     */
    @TableField(value = "perms")
    private String perms;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @TableField(exist = false)
    private List<TMenu> menus;

    @TableField(exist = false)
    private List<TRoleMenu> roleIds;
}